package com.choosefine.it.team.dao;

import com.choosefine.it.team.model.TeamWorkersCollection;
import com.choosefine.it.team.model.vo.TeamWorkersCollectionVO;
import com.github.pagehelper.Page;

import java.util.Map;

public interface TeamWorkersCollectionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TeamWorkersCollection record);

    int insertSelective(Map map);

    TeamWorkersCollection selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TeamWorkersCollection record);

    int updateByPrimaryKey(TeamWorkersCollection record);
    /**
     * 加载该用户的收藏工人的列表
     * @param params
     * @return
     */
    Page<TeamWorkersCollectionVO> selectWorkersCollectionByUserCode(Map<String,Object> params);
    /**
     * 取消收藏
     * @param params
     * @return
     */
    Integer cancleCollection(Map<String, Object> params);
//    /**
//     * 统计条数
//     * @param userCode
//     * @return
//     */
//    int selectCountWorkersCollection(String userCode);
}